Runs the packaging phase of Grails' runtime. This is mainly useful when used by other scripts.
As an include:
includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" )
As a command:
grails package
Usage:
grails package
When used as an include you need to supply the following at the top of your Gant script:
includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" )
Once this is in place there are a number of useful commands that can be re-used:
loadPlugins
- Loads all of the Grails plug-ins and creates the GrailsPluginManager instancegenerateWebXml
- Generates the Grails web.xml deployment descriptorgenerateLog4j
- Generates the Grails log4j properties filepackageApp
- Calls all of the above 3 targets in the appropriate orderTypically packageApp
is the most useful as it performs all the necessary packaging steps